//
// Created by A on 2022/12/3.
//

#ifndef LOUTINE_INNER_GMP_H
#define LOUTINE_INNER_GMP_H

#include <x86_64-linux-gnu/bits/types/time_t.h>
#include "gmp.h"

Loutine *find_next_g_or_even_p(M *worker, bool is_spin);

Loutine *p_poll_job(P *p, bool is_spin);

M *find_cur_m();

int register_task(G *loutine);

void init_m_arg(m_running_arg *arg);

void init_gmp_env();

void m_wait_ms(M *worker, time_t ms);

#endif //LOUTINE_INNER_GMP_H
